package gpl.pierrick.brihaye.aramorph.lucene;

import org.apache.lucene.util.AttributeImpl;

public class POSAttributeImpl extends AttributeImpl implements POSAttribute {
	private String POS;

	@Override
	public String getPOS() {
		return POS;
	}

	@Override
	public void setPOS(String POS) {
		this.POS = POS;
	}

	@Override
	public void clear() {
		this.POS = null;
	}

	@Override
	public void copyTo(AttributeImpl target) {
		POSAttributeImpl x = (POSAttributeImpl) target;
		x.POS = this.POS;
	}

	@Override
	public boolean equals(Object other) {
		return this.POS.equals(((POSAttributeImpl)other).POS);
	}

	@Override
	public int hashCode() {
		return POS.hashCode();
	}

}
